package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_CompanyBankInfoAccount", catalog="Id")
public class TbCompanyBankInfoAccount extends BaseEntity<TbCompanyBankInfoAccount> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="CompanyBankInfoVid", nameJava="companyBankInfoVid", typeDataBase="varchar")
	private String companyBankInfoVid;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Account", nameJava="account", typeDataBase="decimal")
	private BigDecimal account;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbCompanyBankInfoAccount setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TbCompanyBankInfoAccount setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getCompanyBankInfoVid() {
		return companyBankInfoVid;
	}
	public TbCompanyBankInfoAccount setCompanyBankInfoVid(String companyBankInfoVid) {
		this.companyBankInfoVid = companyBankInfoVid;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TbCompanyBankInfoAccount setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public BigDecimal getAccount() {
		return account;
	}
	public TbCompanyBankInfoAccount setAccount(BigDecimal account) {
		this.account = account;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbCompanyBankInfoAccount setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbCompanyBankInfoAccount setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbCompanyBankInfoAccount setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbCompanyBankInfoAccount tbCompanyBankInfoAccount(
		Long pid,
		String companyBankInfoVid,
		String remark,
		BigDecimal account,
		Integer status
			) {
		TbCompanyBankInfoAccount entity = new TbCompanyBankInfoAccount();
		entity.setPid(pid);
		entity.setCompanyBankInfoVid(companyBankInfoVid);
		entity.setRemark(remark);
		entity.setAccount(account);
		entity.setStatus(status);
		return entity;
	}
}